<?php
require_once dirname(__FILE__).'/session-start.php';
start_session();
header("Content-type: image/PNG");
require dirname(__FILE__).'/validateCode.php';  
$_vc = new ValidateCode();  //实例化一个对象
$_vc->doimg();  
$_SESSION['verify_code'] = $_vc->getCode();//验证码保存到SESSION中